var o = require("../../utils/api.js");

getApp();

Page({
    data: {
        status: 0,
        data: ""
    },
    onLoad: function(n) {
        console.log(n);
        var t = n.id, a = this;
        wx.setNavigationBarColor({
            frontColor: wx.getStorageSync("basic").topcolor,
            backgroundColor: wx.getStorageSync("basic").topbg
        }), o.getorderDetails({
            id: t
        }).then(function(o) {
            console.log(o), 0 == o.errno ? a.setData({
                data: o.data
            }) : (console.log(o.message), wx.showModal({
                title: "提示",
                content: o.message,
                showCancel: !1,
                success: function(o) {
                    o.confirm && wx.navigateBack({
                        delta: 2
                    });
                }
            }));
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});